package com.after.saas.user.service.impl;

import com.after.saas.user.model.Dept;
import com.after.saas.user.mapper.DeptMapper;
import com.after.saas.user.service.DeptService;
import com.after.saas.common.model.query.CommonQuery;
import com.after.saas.common.model.vo.DeptVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 部门表 服务实现类
 * </p>
 *
 * @author hjchen
 * @since 2021-07-24
 */
@Service
public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements DeptService {

    @Autowired
    private DeptMapper deptMapper;

    @Override
    public DeptVO findOne(CommonQuery query) {
        return deptMapper.findOne(query);
    }
}
